package com.ssm.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ssm.dao.UserMapper;
import com.ssm.mapper.User;
import com.ssm.service.UserService;

@Service
public class UserServiceImpl implements UserService{
	
	@Autowired
	private UserMapper UserMapper;
	
	public User selectById(int id) {
		
		User user = UserMapper.selectByPrimaryKey(id);
		return user;
		
	}

}
